﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>论坛登录</title>
</head>
<body background="Images/Login.jpg">
    <form id="form1" runat="server">
    <div>
        <asp:Panel ID="Panel1" runat="server" Height="1px" Style="left: 301px; position: absolute;
            top: 223px" Width="409px">
            <table border="2" bordercolor="#CC3399" style="width: 385px; height: 130px; border:1">
                <tr>
                    <td style="width: 80px; text-align: left">
                        <strong>
                        用户名：</strong></td>
                    <td style="width: 204px;" colspan="2">
                        <asp:TextBox ID="txtUserName" runat="server" Width="137px"></asp:TextBox></td>
                    <td colspan="1" style="width: 114px;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                            ErrorMessage="用户名不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="width: 80px; height: 2px;">
                        <strong>
                        密码：</strong></td>
                    <td style="width: 204px; height: 2px;" colspan="2">
                        <asp:TextBox ID="txtPwd" runat="server" TextMode="Password"></asp:TextBox></td>
                    <td colspan="1" style="width: 114px; height: 2px;">
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPwd"
                            ErrorMessage="密码不能为空"></asp:RequiredFieldValidator></td>
                </tr>
                <tr>
                    <td style="height: 48px" colspan="4">
                        &nbsp; &nbsp;<asp:Button ID="btnLogin" runat="server" Text="登录" OnClick="btnLogin_Click" />
                        &nbsp; &nbsp;<asp:Button ID="btnGuest" runat="server" Text="游客" CausesValidation="False" OnClick="btnGuest_Click" />
                        &nbsp; &nbsp;<asp:HyperLink ID="HyperLink1" runat="server" BackColor="Transparent" ForeColor="Blue" NavigateUrl="~/Regist.aspx">注册</asp:HyperLink></td>
                </tr>
          </table>
        </asp:Panel>
        &nbsp;</div>
    </form>
</body>
</html>
